package com.example.lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.demo.R;

import com.example.demo.day3.bean.NewsBean;
import com.example.lol.bean.ListBean;

import org.jetbrains.annotations.NotNull;


public class    ListAdapter extends BaseQuickAdapter<ListBean, BaseViewHolder> {
    public ListAdapter() {
        super(R.layout.item_list);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ListBean listBean) {

        baseViewHolder.setText(R.id.list_name, listBean.getTitle());
        baseViewHolder.setImageResource(R.id.list_bg, listBean.getDrawable());

    }
}

